package cn.zn.modules.appoin.entity;

import cn.zn.framework.common.abs.AbsOldMainEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 工作日期
 *
 * @author zn
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "appoin_time_main")
@Alias("t1")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AppoinTimeMain extends AbsOldMainEntity {
    @TableField(value = "IS_ACTIVE_", fill = FieldFill.INSERT)
    private Boolean isActive;

    @TableField(value = "USER_CODE_")
    private String userCode;

    @TableField(value = "APPOIN_DATE_")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date appoinDate;
    /**
     * 租户ID
     */
    private Long tenantId;

    @TableField(exist = false)
    private Long detailCount;

}